package pe.com.grupobbva.ohc.hy10;

public class OHC_HY10_PortTypeProxy implements pe.com.grupobbva.ohc.hy10.OHC_HY10_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy10.OHC_HY10_PortType oHC_HY10_PortType = null;
  
  public OHC_HY10_PortTypeProxy() {
    _initOHC_HY10_PortTypeProxy();
  }
  
  public OHC_HY10_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOHC_HY10_PortTypeProxy();
  }
  
  private void _initOHC_HY10_PortTypeProxy() {
    try {
      oHC_HY10_PortType = (new pe.com.grupobbva.ohc.hy10.OHC_HY10_ServiceLocator()).getOHC_HY10_Port();
      if (oHC_HY10_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)oHC_HY10_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)oHC_HY10_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (oHC_HY10_PortType != null)
      ((javax.xml.rpc.Stub)oHC_HY10_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy10.OHC_HY10_PortType getOHC_HY10_PortType() {
    if (oHC_HY10_PortType == null)
      _initOHC_HY10_PortTypeProxy();
    return oHC_HY10_PortType;
  }
  
  public pe.com.grupobbva.ohc.hy10.CtConOhcHY10Rs callHY10(pe.com.grupobbva.ohc.hy10.CtConOhcHY10Rq conOhcHY10Rq) throws java.rmi.RemoteException{
    if (oHC_HY10_PortType == null)
      _initOHC_HY10_PortTypeProxy();
    return oHC_HY10_PortType.callHY10(conOhcHY10Rq);
  }
  
  
}